* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            padding: 20px;
        }

        .header {
            background-color: #fff;
            padding: 15px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 30px;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .search-container {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background-color: #fff;
            border: 2px solid #e60044;
            border-radius: 30px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(230, 0, 68, 0.15);
        }

        .search-input {
            flex: 1;
            padding: 16px 25px;
            border: none;
            outline: none;
            font-size: 16px;
            background: transparent;
            color: #333;
        }

        .search-input::placeholder {
            color: #999;
            font-size: 16px;
        }

        .search-icon {
            padding: 16px 25px;
            background-color: #e60044;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s ease;
            border: none;
            outline: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-icon:hover {
            background-color: #c2003a;
        }

        .search-icon i {
            font-size: 18px;
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: #fff;
            border: 1px solid #e0e0e0;
            border-top: none;
            border-radius: 0 0 15px 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            z-index: 1000;
            max-height: 500px;
            overflow-y: auto;
            display: none;
        }

        .dropdown.show {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .dropdown-section {
            padding: 15px 0;
        }

        .dropdown-section:not(:last-child) {
            border-bottom: 1px solid #f0f0f0;
        }

        .section-title {
            padding: 0 25px 10px;
            font-size: 14px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dropdown-item {
            padding: 12px 25px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            display: flex;
            align-items: center;
            border: none;
            width: 100%;
            background: none;
            text-align: left;
            color: #333;
            text-decoration: none;
        }

        .dropdown-item:hover,
        .dropdown-item.highlighted {
            background-color: #f8f9fa;
        }

        .dropdown-item-image {
            width: 50px;
            height: 50px;
            margin-right: 15px;
            object-fit: cover;
            border-radius: 4px;
            background-color: #f5f5f5;
        }

        .dropdown-item-content {
            flex: 1;
        }

        .dropdown-item-text {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .dropdown-item-category {
            font-size: 12px;
            color: #666;
        }

        .dropdown-item-price {
            font-size: 14px;
            font-weight: 600;
            color: #e60044;
            margin-left: 10px;
        }

        .popular-searches {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            padding: 0 25px;
        }

        .popular-search-item {
            padding: 10px 15px;
            background-color: #f8f9fa;
            border-radius: 20px;
            font-size: 13px;
            color: #666;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            text-decoration: none;
            display: block;
        }

        .popular-search-item:hover {
            background-color: #e60044;
            color: white;
        }

        .no-results {
            padding: 30px 20px;
            text-align: center;
            color: #999;
            font-size: 14px;
        }

        .search-history {
            padding: 0 25px;
        }

        .history-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            cursor: pointer;
            transition: color 0.2s ease;
            text-decoration: none;
            color: inherit;
        }

        .history-item:hover {
            color: #e60044;
        }

        .history-icon {
            width: 14px;
            height: 14px;
            margin-right: 12px;
            opacity: 0.5;
        }

        .clear-history {
            padding: 10px 0;
            text-align: center;
            font-size: 12px;
            color: #999;
            cursor: pointer;
        }

        .clear-history:hover {
            color: #e60044;
        }

        .loading {
            padding: 20px;
            text-align: center;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #e60044;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            display: inline-block;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .trending-products {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            padding: 0 25px;
        }

        .trending-product {
            text-align: center;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .trending-product-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 8px;
            background-color: #f5f5f5;
        }

        .trending-product-name {
            font-size: 12px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }

        .trending-product-price {
            font-size: 14px;
            font-weight: 600;
            color: #e60044;
        }

        .view-all {
            text-align: center;
            padding: 15px;
            font-size: 14px;
            font-weight: 500;
            color: #e60044;
            cursor: pointer;
            border-top: 1px solid #f0f0f0;
            text-decoration: none;
            display: block;
        }

        .view-all:hover {
            background-color: #f8f9fa;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 15px;
            }
            
            .search-input {
                font-size: 14px;
                padding: 12px 15px;
            }
            
            .search-icon {
                padding: 12px 15px;
            }
            
            .popular-searches {
                grid-template-columns: 1fr;
            }
            
            .dropdown-item {
                padding: 10px 15px;
            }
            
            .section-title {
                padding: 0 15px 10px;
            }
        }